package book.service;

import book.entity.tushu;

import java.util.List;


public interface TushuServices {
    List<tushu> getAll();

    List<tushu> getByPage(int offset, int limit);

    List<tushu> getByPage(int offset, int limit,tushu condition);

    int getCount(tushu condition);

    void delete(int id);

    void insertEntity(tushu tushu);

    tushu getById(int id);

    void update(tushu tushu);

    void updaZT(int id);

    void batchDel(List<Integer> ids);

    int getCountByCondition(tushu condition);
    int updatereturn(int ts_id);

    int updateborrow(int ts_id);

    void updatushu(tushu t);

    List<tushu> getByPage2(int offset, int limit, tushu condition);

    void updatezt(int ts_id);

    List<tushu> tongji();

    int getCount2(tushu tushu);
}
